<include file="Public:header" />

<div class="table-tit"><a href="{:U('Sett/index')}">推广方案列表</a>>>{$data.pre_name}</div>
<div class="form-panel">
    <div class="row">
        <div class="col-md-5">
            <form action="{:U('Curd/editons','type=Preftype&str=pre_id&id='.$data['pre_id'])}" method="post">
                <div class="form-group">
                    <label>推广方案名称</label>
                    <input type="text" name="pre_name" class="form-control input-sm" value="{$data.pre_name}">
                </div>
                <div class="form-group">
                    <label>推广方案类型</label>
                    <select name="pre_type" class="form-control input-sm">
                        <option value="0">请选择</option>
                        <option value="1" <if condition='$data.pre_type eq 1'>selected</if>>满减</option>
                        <option value="2" <if condition='$data.pre_type eq 2'>selected</if>>直降</option>
                        <option value="3" <if condition='$data.pre_type eq 3'>selected</if>>赠品</option>
                        <option value="4" <if condition='$data.pre_type eq 4'>selected</if>>打折</option>
                    </select>
                </div>
                <div class="form-group">
                    <label>达标金额</label>
                    <input type="text" name="pre_trimoney" class="form-control input-sm" value="{$data.pre_trimoney}" placeholder="填写达到多少金额触发此优惠">
                </div>
                <div class="form-group">
                    <label>优惠</label>
                    <input type="text" name="pre_ratio" class="form-control input-sm" value="{$data.pre_ratio}" placeholder="优惠可以为金额也可为百分比(百分比换算为小数填写)">
                </div>
                <div class="form-group">
                    <label>限制金额</label>
                    <input type="text" name="pre_maxmoney" class="form-control input-sm" value="{$data.pre_maxmoney}" placeholder="最高优惠金额">
                </div>
                <div class="form-group">
                    <label>限制商品</label>
                    <input type="text" name="pre_goods" class="form-control input-sm" value="{$data.pre_goods}" placeholder="设置特定商品才能优惠">
                </div>
                <div class="form-group">
                    <label>状态</label>
                    <select name="pre_status" class="form-control input-sm">
                        <option value="0">请选择</option>
                        <option value="1" <if condition="1 eq $data['pre_status']">selected</if>>启用</option>
                        <option value="2" <if condition="2 eq $data['pre_status']">selected</if>>暂停</option>
                    </select>
                </div>
                <button type="submit" class="btn btn-default">更新</button>
            </form>

        </div>
    </div>
</div>

<include file="Public:footer" />
